home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga News 96
/
Amiga News 96.iso
/
amig_ad_os
/
avm
/
prog
/
source
/
playddnumber.avmsrc
< prev
next >
Wrap
Text File
|
1977-12-31
|
2KB
|
92 lines
startrecord=true
label=playddnumber
nodetype=14
comment=We're going to play a double digit number
nextactiontype=3
nextactionaction=
endrecord=true
startrecord=true
label=
nodetype=8
line1=procedure
line2=
line3=parse arg number
line4=directdd = getclip('AVMDirectDDNumber')
line5=if upper(directdd) = 'YES' then signal playdirectdd
line6=
line7=
line8=
line9=
line10=
nextactiontype=3
nextactionaction=
endrecord=true
startrecord=true
label=
nodetype=8
line1=if number > 9 & number < 20 then
line2= call playANumber(number)
line3=else if number >= 20 & number < 60 then do
line4= units = number // 10
line5= tens = number - units
line6= call playANumber(tens)
line7= if units > 0 then call playnumber(units)
line8=end; else
line9= call playnumber(number+0)
line10=
nextactiontype=2
nextactionaction=return
endrecord=true
startrecord=true
label=playdirectdd
nodetype=8
line1=if number < 10 then call playnumber(number+0)
line2=else call playANumber(number)
line3=
line4=
line5=
line6=
line7=
line8=
line9=
line10=
nextactiontype=2
nextactionaction=return
endrecord=true
startrecord=true
label=playANumber
nodetype=8
line1=procedure
line2=parse arg number
line3=numToPlay = 'avm:voices/number' || number
line4=
line5=
line6=
line7=
line8=
line9=
line10=
nextactiontype=3
nextactionaction=
endrecord=true
startrecord=true
label=
nodetype=1
filename=numToPlay
comment=
keyactiontype=3
keyactionaction=
faxactiontype=0
faxactionaction=stdfax
dataactiontype=0
dataactionaction=stddata
busyactiontype=0
busyactionaction=stdbusy
abortactiontype=0
abortactionaction=stdabort
erroractiontype=0
erroractionaction=stderror
nextactiontype=2
nextactionaction=return
endrecord=true